package com.tn.rtdata.examples.stockticker.client;

import javax.swing.*;

import com.tn.rtdata.Session;

/**
 * A specialization of <code>Session.Listener</code> that displays a <code>JOptionPane</code> if the
 * heart-beating fails
 */
public class PromptingSessionListener extends Session.Listener
{
  /**
   * {@inheritDoc}
   */
  @Override
  public void heartbeatFailed()
  {
    JOptionPane.showMessageDialog(null, "The heartbeat to the server has failed.");
  }
}
